package com.lcj.hub.db.entity;

import com.mybatisflex.annotation.Id;
import com.mybatisflex.annotation.KeyType;
import com.mybatisflex.annotation.Table;
import java.io.Serializable;
import java.sql.Timestamp;

import java.io.Serial;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * 班级表 实体类。
 *
 * @author lcj
 * @since 2024-08-04
 */
@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
@Schema(description = "班级表")
@Table("classes")
public class Classes implements Serializable {

    @Serial
    private static final long serialVersionUID = 1L;

    /**
     * 班级ID，主键
     */
    @Id(keyType = KeyType.Auto)
    @Schema(description = "班级ID，主键")
    private Integer classId;

    /**
     * 班级名称
     */
    @Schema(description = "班级名称")
    private String className;

    /**
     * 教师ID，外键引用教师表
     */
    @Schema(description = "教师ID，外键引用教师表")
    private Integer teacherId;

    /**
     * 创建时间
     */
    @Schema(description = "创建时间")
    private Timestamp createdAt;

    /**
     * 更新时间
     */
    @Schema(description = "更新时间")
    private Timestamp updatedAt;

}
